package org.wm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.wm.domain.SysJobLog;

import java.util.List;

/**
 * 调度任务日志信息 数据层
 * (已按照 Mybatis-Plus 混合模式进行改造)
 */
@Mapper
public interface SysJobLogMapper extends BaseMapper<SysJobLog> {

    /**
     * 分页查询调度日志
     */
    IPage<SysJobLog> selectJobLogList(Page<SysJobLog> page, @Param("jobLog") SysJobLog jobLog);

    /**
     * 查询所有调度任务日志
     */
    List<SysJobLog> selectJobLogAll();

    /**
     * 清空任务日志
     */
    void cleanJobLog();
}